﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VINETLIFE.BL;

namespace VINETLIFE.Module
{
    public partial class ucVnAccountInfo : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["CustomerId"] != null)
            {
                int customerId = int.Parse(Session["CustomerId"].ToString());
                if (!IsPostBack)
                    rptAccountDataSource(customerId);
            }
        }
        protected void rptAccountDataSource(int customerId)
        {
            rptAccount.DataSource = new cmsAccountBL().AccountInfo(customerId);
            rptAccount.DataBind();
        }
    }
}